package it.eng.ws.test.logging;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

public class LoggingSample
{
	private static LoggingSample instance = null;

	static{
		if (instance == null)
			instance = new LoggingSample();
	}
	
    /**
     * 
     */
    public LoggingSample()
    {
        super();
        try{
        PropertyConfigurator.configure(Thread.currentThread().getContextClassLoader().getResource("log4j.properties"));
        }catch(Exception e){
        	System.out.println(e.getMessage());      	
        }
    }
    
    
    public static Logger getLogger(Class cla){
    	return Logger.getLogger(cla);
    }
}